let fs = require("fs");
var stream = require('stream');
console.log('stream: ', stream);
var bufferStream = new stream.PassThrough();

//str 转 stream
const str = "this is a str,和额呵呵的大 ";
const strBuffer = Buffer.from(str);
// Write your buffer
bufferStream.end(strBuffer);

// Pipe it to something else  (i.e. stdout)
bufferStream.pipe(process.stdout)

//stream 转 str
